﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="topics_add.aspx.cs" Inherits="WebSite.admin.shop.topics_add" %>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>上海万礼通网络科技后台管理系统</title>
    <link href="../main.css" rel="stylesheet" type="text/css" />
    <script language="javascript">
        parent.maintitle.innerHTML = "促销管理";
        parent.contentmain.innerHTML = "<span class='title01'>所在位置：</span>添加促销专题。"
    </script>
    <script language='javascript'>
        var path = (window.top.location).toString();
        if (path.indexOf('login.aspx') == -1) {
            if (path.indexOf('index.aspx') == -1) {
                window.top.location = 'index.aspx';
            }
        }
	</script>
	<script language="javascript" src="../../js/function.js"></script>
    <script language="javascript">
        function CheckFrm() {
            var obj = 'topic';
            var objt = '1';
            var msg = '专题名称';
            var chks = chk(form1, obj, objt, msg)
            if (!chks) {
                return false;
            }
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
<table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#F1F4F7">
<tr>
<td height="382" align="center" valign="top">
  <br />
  <%if(Request.QueryString["tid"]!=null){ %>
  <table width="90%" border="1" cellpadding="3" cellspacing="1" bordercolor="#E2E7EB">
    <tr align="center">
      <td bgcolor="#C9D2DA"><a href="topics_add.aspx?tid=<%=Request.QueryString["tid"] %>" class="menu02">通用信息</a></td>
      <td bgcolor="#E2E7EB"><a href="topic_add02.aspx?tid=<%=Request.QueryString["tid"] %>">促销专题商品</a></td>
      <td bgcolor="#E2E7EB"><a href="topic_add03.aspx?tid=<%=Request.QueryString["tid"] %>">促销专题介绍</a></td>
    </tr>
  </table>
  <%}else{ %>
  <table width="90%" border="1" cellpadding="3" cellspacing="1" bordercolor="#E2E7EB">
    <tr align="center">
      <td bgcolor="#C9D2DA" colspan="3"><a href="topics_add.aspx"   class="menu02">通用信息</a></td>
    </tr>
  </table>
  <%} %>
  <br />
<table width="90%" border="0" cellpadding="5" cellspacing="0">
        <tr>
          <td align="right">专题名称</td>
          <td><input name="topic" type="text" id="topic" runat="server" size="40" />*</td>
        </tr>
        <!--tr>
          <td align="right">活动周期</td>
          <td><input name="time1" type="text" id="time1" runat="server" style="behavior:url('../../LWDP.HTC');" />
            - <input name="time2" type="text" id="time2" runat="server" style="behavior:url('../../LWDP.HTC');" />
              *</td>
        </tr-->
        <tr>
          <td align="right">专题图片</td>
          <td><asp:TextBox ID="pic" runat="server"></asp:TextBox><input id="file1" type="file" runat="server" /><asp:Button ID="Button1" runat="server" Text="上传" OnClick="Button1_Click" /></td>
        </tr>
        <tr>
          <td align="right">链接地址</td>
          <td><input name="picurl" type="text" id="picurl"  runat="server" style="width: 335px" /></td>
        </tr>
        <tr>
          <td align="right">排序</td>
          <td><input name="topicorder" type="text" id="topicorder" value="0" runat="server" /></td>
        </tr>
        <!--tr>
          <td align="right">
              让利多少</td>
          <td><input name="topicpage" type="text" id="topicpage" value="0"  runat="server" style="width: 33px" />%</td>
        </tr>
        <tr>
          <td align="right">专题提示</td>
          <td><input name="topictitle" type="text" id="topictitle"  runat="server" /></td>
        </tr>
        <tr>
          <td align="right">打开方式</td>
          <td><asp:RadioButtonList ID="topicopen" runat="server" RepeatColumns="2">
          <asp:ListItem Value="0" Selected="True">在原窗口打开</asp:ListItem>
          <asp:ListItem Value="1">在新窗口打开</asp:ListItem>
              </asp:RadioButtonList></td>
        </tr>
        <tr>
          <td align="right">显示位置</td>
          <td><asp:RadioButtonList ID="location" runat="server" RepeatColumns="2">
          <asp:ListItem Value="0" Selected="True">首页左边</asp:ListItem>
          <asp:ListItem Value="1">首页右边</asp:ListItem>
              </asp:RadioButtonList></td>
        </tr-->
        <tr>
          <td align="right">是否为推荐专题</td>
          <td><asp:CheckBox ID="isnew" runat="server" /></td>
        </tr>
        <tr>
          <td align="right">是否可见</td>
          <td><asp:CheckBox ID="visible" Checked="true" runat="server" /></td>
        </tr>
        <!--tr>
          <td align="right">是否发布到Flash播放列表</td>
          <td><asp:CheckBox ID="isflash" runat="server" /></td>
        </tr-->
      </table>
      
  <table width="90%" border="0" cellpadding="5" cellspacing="0">
  <tr>
      <td height="50" align="center"><asp:ImageButton ID="ImageButton1" ImageUrl="../images/buttom-02.gif" runat="server" OnClick="ImageButton1_Click" />
       <a href="javascript:form1.reset();"><img src="../images/button03.gif" border="0" /></a></td>
      </tr>
   </table>
  </td>
</tr>
</table>
      
    </div>
    </form>
</body>
</html>

